#include <sys/types.h>
#include <unistd.h>
#include <grp.h>
#include <binder/IPCThreadState.h>
#include <binder/ProcessState.h>
#include <binder/IServiceManager.h>
#include <utils/Log.h>
#include <private/android_filesystem_config.h>
#include "../libcalservice/CalService.h"

using namespace android;
int main(int argc, char** argv)
{
	sp<ProcessState> proc(ProcessState::self());
	// Get ServiceManager
	sp<IServiceManager> sm = defaultServiceManager();
	LOGI("ServiceManager: %p", sm.get());
	LOGE("addserverapp--peter \n ");
	CalService::instantiate(); // add itself into ServiceManager
	ProcessState::self()->startThreadPool(); // start the buffer pool
	IPCThreadState::self()->joinThreadPool(); // add the service into the binder loop
}


